var success = { "code": "", "data": {}, "msg": "", "success": true }
var err = { "code": "", "data": {}, "msg": "err", "success": false }
var Mock = require('mockjs')
 
module.exports = {
     '/':{ "code": 0,"data": Mock.mock({
 			   "list|1-10": [
 				{ 
 				  "id|+1": 100,
 				  "name|+1": [ "Hello" ],
 				  "desc":Mock.mock('@string()'),
                   "content":Mock.mock('@ctitle(10, 50)'),
 				  "date": Mock.mock('@now'),
                   "img":`https://via.placeholder.com/${Mock.mock('@natural(60, 100)')}x${Mock.mock('@natural(100, 300)')}.png`
 				}
 			   ]
 			})
     }
  ,'/api/list':{ 
            "code": 0,
            "data": Array(10).fill({}).map((e,i)=>{
                const tmp = {...e}
                tmp.id = 1100+i
                tmp.name = Mock.mock('@ctitle(2, 5)') 
                tmp.title = Mock.mock('@ctitle(10, 20)') 
                tmp.content = Mock.mock('@ctitle(10, 50)')
                tmp.like = Mock.mock('@natural(60, 100)')
                tmp.love = Mock.mock('@natural(60, 100)')
                tmp.date = Mock.mock('@now')
                tmp.img = `https://via.placeholder.com/${Mock.mock('@natural(60, 100)')}x${Mock.mock('@natural(100, 300)')}.png`
                return tmp;
            })
   }
   ,'/user/login':{ 
    
  }
  ,'/user/login':{ 
    
  }
  ,"/otc":{ main:1 }
  ,"/upload":{ "url":"https://www.baidu.com/img/flexible/logo/pc/result.png" }
  // 用户相关  登陆 发送验证码   
  ,"/web/user/login":{"code":"1","success":true,"msg":null,"data":{"checkStatus":2,"level":2,"phone":"008613043629968","name":"008613043629968","source":2,"registerType":1,"accessToken":"1723138677a9e96f89e5c4dcb8f34cacaee96b4b2","userId":100047,"email":null}}
   ,"/otc/otcAd/deleteUserPay":  success
      
}